package com.pactera.madp.cp.api.entity.workroom;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * WorkMassContactEntity
 *
 * @author jun
 * @version 1.0
 * 2021/7/14 10:38
 **/
@Data
@TableName("cp_work_mass_contact")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "群发信息-客户资料表")
public class WorkMassContactEntity extends BaseEntity<WorkMassMsgEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "群发信息表id")
    private Integer massId;

    @ApiModelProperty(value = "外部联系人userid")
    private String externalUserid;

    @ApiModelProperty(value = "发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败")
    private Integer status;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sendTime;

    @ApiModelProperty(value = "企业服务人员的userid")
    private String userid;

    @ApiModelProperty(value = "外部客户群id")
    private String chatId;
}
